import 'package:json_annotation/json_annotation.dart';

part 'business_type.g.dart';

@JsonSerializable()
class BusinessType {
  final String typeImageUrl;
  final String businessType;
  final String businessName;
  final String curBusinessLevel;
  final String endTime;
  final String curBusinessLevelName;
  final String description;

  BusinessType(
    this.typeImageUrl,
    this.businessType,
    this.businessName,
    this.curBusinessLevel,
    this.endTime,
    this.curBusinessLevelName,
    this.description,
  );

  factory BusinessType.fromJson(Map<String, dynamic> json) => _$BusinessTypeFromJson(json);

  Map<String, dynamic> toJson() => _$BusinessTypeToJson(this);
}
